<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" href="">
	<link href="/fcms/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
	<link href="/fcms/Public/assets/css/home.css" rel="stylesheet" />
	<link href="/fcms/Public/assets/css/font-awesome.min.css" rel="stylesheet" />
	<script src='/fcms/Public/assets/js/jquery-2.0.3.min.js'></script>
	<script src="/fcms/Public/assets/js/bootstrap.min.js"></script>
	<script src="/fcms/Public/assets/js/jquery.scrollUp.min.js"></script>
	<script src="/fcms/Public/assets/js/jquery.color.js"></script>
	<style>
		#scrollUp {
		    background-image: url("/fcms/Public/assets/images/home/top.png");
		    bottom: 20px;
		    right: 20px;
		    width: 38px;    
		    height: 38px;   
		}
		#scrollUp-active{
			border: 0!important;
		}
	</style>

	<title><?php echo ($data["title"]); ?> - FCMS</title>
</head>
<body>

	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<?php echo W('Menu/nav');?>
				<div class="row clearfix main">
					<div class="col-md-8 column">
						<ul class="breadcrumb">
							<li>
								 <a href="<?php echo U('Home/Index/index');?>">首页</a>
							</li>
							<li>
								 <a href="<?php echo U('channel', 'id='.$data['type']);?>"><?php echo ($channel); ?></a>
							</li>
							<li class="active">
								文章
							</li>
						</ul>
						<div class="page-header">
							<h1>
								<?php echo ($data["title"]); ?>
							</h1>
							发布：<span><?php echo ($data["a_name"]); ?> </span> · 时间：<small><?php echo ($data["create_time"]); ?></small> · 阅读：<small><?php echo ($data["read"]); ?></small>
						</div>
						<div>
							<?php echo (htmlspecialchars_decode($data["content"])); ?>
						</div>

					</div>
					<div class="col-md-4 column">
						<!-- <a id="modal-127481" href="#modal-container-127481" role="button" class="btn" data-toggle="modal">触发遮罩窗体</a> -->

						<div class="modal fade" id="modal-container-127481" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title" id="myModalLabel">标题</h4>
									</div>
									<div class="modal-body">内容...</div>
									<div class="modal-footer">
										<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
										<button type="button" class="btn btn-primary">保存</button>
									</div>
								</div>

							</div>

						</div>

						<div class="panel panel-default">
							<div class="panel-heading">
								<h3 class="panel-title">联系方式</h3>
							</div>
							<div class="panel-body">
								QQ&nbsp;&nbsp;&nbsp;：114361190 <br>
								Email：fini.yang@gmail.com <br>
								Tel&nbsp;&nbsp;&nbsp;&nbsp;：400-800-12345 <br>
							</div>

						</div>

						<div class="list-group">
							<div class="list-group-item active">同类热门文章</div>
							<?php if(is_array($hot)): foreach($hot as $key=>$vo): ?><div class="list-group-item">
									<a href="<?php echo U('Home/Index/detail','a_id='.$vo['id']);?>">
										<!-- <?php echo (mb_strlen($vo["title"],'utf8')); ?> -->
										<?php if((mb_strlen($vo['title'],'utf8') > 20)): echo (msubstr($vo["title"],0,20,'UTF-8',true)); ?>
										<?php else: echo ($vo["title"]); endif; ?>
									</a>
								</div><?php endforeach; endif; ?>
						</div>
						<img  width="100%" src="/fcms/Public/assets/images/home/1009227.jpg" class="img-rounded" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="well foot">
	<p>
		Copyright © 2014 - Powered by Fini
	</p>
</div>
<script type="text/javascript">
	//返回顶部 start
    $.scrollUp({
        animation: 'fade',
        activeOverlay: '#00FFFF',
        scrollImg: {
            active: true,
            type: 'background',
            src: '/fcms/Public/assets/images/top.png'
        }
    });
</script>
</body>
</html>